<{include file="public/header.html"}> 
	<!--问答 搜索-->
	<header class="title-fixed w100">
		<div class="title">
			<div class="index-search f-cb">
                <div class="fl search-input">
                    <input class="fl art-search search-text" type="text" value="<{$keyword}>" placeholder="输入关键字" />
                </div>
                <input class="search-btn fr" id="article-search-btn"  type="button" value="搜索">
			</div>
		</div>
	</header>
	<!--hot搜索-->
	<div class="mt50 hot-search">
            <div class="plr20">
            	<p>热搜词</p>
            </div>
		<ul>
                    <{foreach from=$kw_arr key=key item=val}>
                    <li class="<{if $key+1 == 1}>col-1<{elseif $key+1 == 2}>col-2<{elseif $key+1 == 3}>col-3<{elseif $key+1 == 4}>col-4<{else}>col-5<{/if}>"><a href="<{eval url('loan/search_result_new')}>?kw=<{$val}>"><{$val}></a></li>
                    <{/foreach}>
		</ul>
	</div>
        <script type="text/javascript">
            $('.wd-search-list button').click(function(){
                $(this).hasClass('col-red') ? $(this).removeClass('col-red') : $(this).addClass('col-red') ;
            });
            $(".hot-search ul li").click(function(){
                $(this).addClass("active").siblings().removeClass("active");
            });
            $(function(){
                $(".search-text").focus();
                $("#article-search-btn").on("click",function(){
                    var _box = $(".search-text"),_text=_box.val();
                    if($.trim(_text) == ""){
                        $.mvalidateTip("请输入查询关键字");return;
                    }
                    window.location.href = "/loan/search_result_new.html?kw="+encodeURIComponent(_text);
                });
            });
        </script>
<{include file="public/footer.html"}> 
